home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 6: Level 6
/
17 Bit - Level 6 (1998)(Epic Marketing)[!].iso
/
quartz
/
q0867.dms
/
q0867.adf
/
TRAPDOOR.LZH
/
Rexx
/
tdcost.rexx
next >
Wrap
OS/2 REXX Batch file
|
1991-09-27
|
365b
|
24 lines
/* tdcost.rexx
Usage: rx tdcost.rexx
Summarizes the cost from the output of the listacct utility. Reads input
from stdin.
*/
total = 0
in=stdin
do while ~eof(in)
line=readln(in)
node = word(line,1)
cost = word(line,3)
if pos(":",node)~=0 then do
/* say "Node" node ":" cost */
cost = cost + 0
total = total + cost
end
end
say date()":" total